#include <iostream>
#include <vector>
#include <list>
#include <algorithm>

using namespace std;

class Solution{
public:
    vector<int> spiral_order(vector<vector<int>>& matrix){
        if(matrix.size() <= 0){
            return {};
            int rows = matrix.size();
            int cols = matrix[0].size();
            vector<int> spiral(rows*cols);


        }

    };

int main(){
    int row = 3;
    int col = 3;

    std::vector<std::vector<int> > matrix(row,vector<int>(col));
    for(int i=0; i<row; ++i){
        for(int j=0; j<col; ++j){
            matrix[i][j] = i+j;
        }
    }


    for(int i=0; i<row; ++i){
        for(int j=0; j<col; ++j){
            std::cout << matrix[i][j] << ", ";
        }
        cout << endl;
    }

    std::list<int> list(99);
    if (matrix.size() == 0 || matrix[0].size() == 0) {
        return -1;
    }


    Solution spiral_order;
    vector<int> spiral = spiral_order.spiralOrder(matrix);

    int size = spiral.size();
    for (int i = 0; i < size; i++){
        cout << spiral[i] << endl;
    }


    return 0;
}
